<?php

require_once './application/controllers/ControllerBase.php';
require_once './application/core/CoreBase.php';
require_once './application/core/Sonde/confCore.php';
require_once './application/core/Sonde/readConf.php';
require_once './application/core/Sonde/writeConf.php';
require_once './application/core/Sonde/webCore.php';

class SondeController extends ControllerBase
{

    function indexAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new IndexCore($this);
        $core->Execute();
    }

    function readAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $c = new confCore($this);
        $c->readConf();
    }

    function readrespAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $c = new confCore($this);
        $c->readRespConf();
    }

    function writeAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $c = new writeConf($this);
        $c->writeConfiguration();
    }

    function webAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $c = new webCore($this);
        $c->Execute();
    }

}